package com.rc.web.service;

import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.rc.pojo.dto.farmapply.AddFarmApplyDTO;
import com.rc.pojo.dto.farmapply.ApprovalFarmApplyDTO;
import com.rc.pojo.dto.farmapply.FarmApplyPageQuery;
import com.rc.pojo.po.FarmApply;
import com.rc.pojo.vo.farmapply.PageFarmApplyVO;
import org.springframework.transaction.annotation.Transactional;

/**
 *  服务层。
 *
 * @author 27806
 * @since 2024-06-18
 */
public interface FarmApplyService extends IService<FarmApply> {

    /**
     * 申请加盟
     * @param dto
     */
    void add(AddFarmApplyDTO dto);

    /**
     * 审批加盟
     * @param dto
     */
    @Transactional
    void approval(ApprovalFarmApplyDTO dto);

    Page<PageFarmApplyVO> getPage(FarmApplyPageQuery dto);
}
